define (OTF Keyword)

Defines a reference variable within an ObjGen template file.

Syntax

%define variable-name as string-expression%

Remarks

Use the define statement to define a variable based on a string constant or expression that can then be used and referenced multiple times within an ObjGen template file.

Modifiers

(variable-name) Specifies the name of the code template variable to create.

(string-expression) Can be a literal string value or a more complex expression that combines one or more strings into a single variable reference. The string expression will support references to pre-defined variable names and calls to internal OjbGen objects.

Example

%rem Create a reference variable that will contain a formatted name%
%define okButton as APPLICATION.GetButtonNamePrefix + "Ok"%

...

%rem Disable the Ok button%
%okButton%.Enabled = False

 

 

 


Copyright Information
 
Copyright ⌐ 1998-1999 Everett Ward Systems. All rights reserved.
Other products & companies referred to herein are trademarks or registered trademarks of their
respective companies or mark holders.